import http from '@/base/api/public'
import querystring from 'querystring'
let sysConfig = require('@/../config/sysConfig')
let apiUrl = sysConfig.xcApiUrlPre;
export const page_list = function(pageNo,pageSize,queryModel){
    let uri = querystring.stringify(queryModel)
    console.log(uri)
    return http.requestQuickGet(apiUrl+'/cms/page/list/'+pageNo+'/'+pageSize+'?'+uri)
}

export const page_add = function(model){
    return http.requestPost(apiUrl+'/cms/page/add',model)
}

export const page_get = function(pageId){
    return http.requestQuickGet(apiUrl+'/cms/page/get/'+pageId)
}


export const page_edit = function(pageId,model){
    return http.requestPut(apiUrl+'/cms/page/edit/'+pageId,model)
}

export const page_del = function(pageId){
    return http.requestDelete(apiUrl+'/cms/page/del/'+pageId)
}
// module.exports = { page_list }